package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

public interface IUserService extends IService<User> {
    /**
     * 根据id扣减余额
     * @param id 用户id
     * @param amount 扣减的金额
     */
    void deductBalanceById(Long id, int amount);

    UserVO queryUserAndAddressById(Long id);

    List<UserVO> queryUserAndAddressByIds(java.util.List<java.lang.Long> ids);
}
